import {Component, OnInit, Input, ViewChild, ElementRef} from '@angular/core';
import {ViewEncapsulation} from "@angular/core";

@Component({
  selector: 'rank-cards',
  templateUrl: 'rank.component.html',
  encapsulation: ViewEncapsulation.None
})
export class RankComponent implements OnInit {
  @ViewChild('radarCards') radarCards: any;
  rankData:object = {
    "code": 200,
    "message": "xxxx",
    "data": [
      {
        "id":"sad675454sad",
        "ranking":"1",
        "orgName":"意大利电力",
        "whether":"0"
      },
      {
        "id":"sad675454sad",
        "ranking":"2",
        "orgName":"韩国电力",
        "whether":"0"
      },
      {
        "id":"sad675454sad",
        "ranking":"3",
        "orgName":"美国新世代",
        "whether":"0"
      },
      {
        "id":"sad675454sad",
        "ranking":"4",
        "orgName":"英国国家电网"
      },
      {
        "id":"sad675454sad",
        "ranking":"6",
        "orgName":"南方电网",
        "whether":"1"
      }
    ]
  };
  radarData: object = {
    "code": 200,
    "message": "xxxx",
    "data": {
      "detail": {
        "score": "81.74",    //分数
        "status": "0",       //0：未达到世界一流，1：已达到世界一流
        "ranking": "8"       //对标排名
      },
      "data": [
        ["经营实力", "技术经济", "财务绩效"], //type
        ["30.20", "30.47", "30.62"],      //蓝色选中单位数值
        ["70.64", "70.47", "70.62"]       //绿色选中单位数值
      ]
    }
  };
  constructor() {
    //
  }
  ngOnInit() {
  }

  ionViewDidLoad() {
  }


}
